from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep

driver = webdriver.Edge()
driver.get("https://www.jiuxian.com/")
driver.maximize_window()
sleep(2)
driver.find_element(By.CSS_SELECTOR,'body > div.topHeader > div > div.topHeaderRight > ul > li.hd-n1.dropTitle > div.myJiuxian > a').click()
sleep(2)
driver.switch_to.window(driver.window_handles[-1])
sleep(2)
driver.find_element(By.XPATH,'//*[@id="loginform"]/div/div/div/div/div[1]/div[4]/div/a[1]/i').click()
sleep(2)
driver.switch_to.frame(driver.find_element(By.ID,'ptlogin_iframe'))
sleep(2)
driver.find_element(By.ID,'switcher_plogin').click()

sleep(5)